home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Pascal Super Library
/
Pascal Super Library (CW International)(1997).bin
/
COMM
/
ASYNEW
/
ASYNC.PAS
next >
Wrap
Pascal/Delphi Source File
|
1988-03-04
|
1KB
|
32 lines
Program Async;
{--------------------------------------------------------------------------}
{ This is a trivial little glass terminal program which simply shows a }
{ test I used of the ASYNC4U unit under Turbo 4.0 which appears to work. }
{ Scott Gurvey }
{ Removed call to Async_init. }
{ Call to Async_close is now optional. }
{ Tom R. Donnelly }
{--------------------------------------------------------------------------}
uses Dos, Crt, Async4U;
var inchar, outchar : char;
begin
{Async_Init; Not necessary - handled automatically !}
writeln('Init status:',Async_Open(1,1200,'E',7,1));
outchar:=' ';
repeat
if Async_Buffer_Check(inchar) then write(inchar);
if keypressed then begin
outchar:=Readkey;
If outchar<>'!' then {Type an exclaimation point to exit}
Async_send(outchar);
end;
until outchar='!';
Async_Close; {This is optional - ExitProc will close automatically}
end.